import requestApi from "@/utils/requestApi";
interface ResponseData {
    code: number;
    data?: any;
    msg?: string;
}
// 获取用户数据
export async function POST(url:string, data:any):Promise<ResponseData>{

    return requestApi.post(url,data);

}
// 获取用户菜单
export async function GET(url:string, ...data:any):Promise<ResponseData>{

    return requestApi.get(url,...data);

}